﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

namespace NSQL.Expressions
{
    /// <summary>
    /// values can be constant Value or subquery
    /// </summary>
    public class InExpression : BaseExpression, IInExpression
    {
        public IExpression Left { get; set; }
        public IExpressions Elements { get; set; }

        public InExpression(IExpression expression, IExpressions inElements)
        {
            Left = expression;
            Elements = inElements;
        }

        public override T Accept<T>(IExpressionVisitor<T> visitor) => visitor.Visit(this);
    }
}